package com.sale.system.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import com.sale.system.domain.SysFunctionalParameter;
import com.sale.system.domain.dto.SysFunctionalParameterDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: YSL
 * @Date: 2023/7/7 11:46
 * @Desc: 功能参数 数据层
 */
public interface SysFunctionalParameterMapper extends BaseMapperPlus<SysFunctionalParameterMapper, SysFunctionalParameter, SysFunctionalParameter> {

    /**
     * 查询功能参数关联参数说明信息
     *
     * @param accountsId
     * @return
     */
    List<SysFunctionalParameterDto> selectFunctionalParameterList(Long accountsId);

    /**
     * 修改功能参数信息
     * @param functionalId
     * @param operatingState
     * @return
     */
    int updateFunctionalParameterId(@Param("functionalId") String functionalId, @Param("operatingState") Integer operatingState);

    /**
     * 根据账套id删除功能参数
     *
     * @param accountsId
     * @return
     */
    int deleteFunctionalParameterId(long accountsId);

}
